package src.entity;

/**
 * 动漫对象
 * MYSQl——————>对象
 * 方便不会用mysql的人使用对象
 */
public class Anime {
    //主键
    private int id;
    //名字
    private String name;
    //类型
    private String tag;
    //内容介绍
    private String content;
    //评分
    private double score;
    //创建时间
    private String creattime;

    public Anime() {
    }

    /**
     * 获取
     * @return id
     */
    public int getId() {
        return id;
    }

    /**
     * 设置
     */
    public void setId(int id) {
        this.id = id;
    }

    /**
     * 获取
     * @return name
     */
    public String getName() {
        return name;
    }

    /**
     * 设置
     * @param name
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 获取
     * @return tag
     */
    public String getTag() {
        return tag;
    }

    /**
     * 设置
     * @param tag
     */
    public void setTag(String tag) {
        this.tag = tag;
    }

    /**
     * 获取
     * @return content
     */
    public String getContent() {
        return content;
    }

    /**
     * 设置
     * @param content
     */
    public void setContent(String content) {
        this.content = content;
    }

    /**
     * 获取
     * @return score
     */
    public double getScore() {
        return score;
    }

    /**
     * 设置
     * @param score
     */
    public void setScore(double score) {
        this.score = score;
    }

    /**
     * 获取
     * @return creattime
     */
    public String getCreattime() {
        return creattime;
    }

    /**
     * 设置
     * @param creattime
     */
    public void setCreattime(String creattime) {
        this.creattime = creattime;
    }

    public String toString() {
        return "Anime{id = " + id + ", name = " + name + ", tag = " + tag + ", content = " + content + ", score = " + score + ", creattime = " + creattime + "}";
    }
}
